﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Staff_.ascx.cs" Inherits="eDream.admin.Staff_" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div class="cloum_text">
        Từ ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteFrom" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    <div class="cloum_text">
        Đến ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteTo" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
     
    <div class="cloum_1">
        <dx:ASPxButton ID="btnTim" runat="server" Text="Tìm" Theme="iOS" AutoPostBack="false" OnClick="btnTim_Click">    
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <br />
    <div style="margin-bottom: 20px; width: 90px; float: left">
        Mã số thẻ
      </div>
    <div style="margin-bottom: 20px; width: 170px; float: left">
        <dx:ASPxTextBox ID="txtAccout" runat="server" Height="29px" MaxLength="7"></dx:ASPxTextBox>
    </div>
    <div style="margin-bottom: 20px; width: 150px; float: left">
        <dx:ASPxButton ID="btnHuy" runat="server" Text="Hủy kích hoạt" Theme="iOS" AutoPostBack="false" OnClick="btnHuy_Click">
           
        </dx:ASPxButton>
    </div>
    <div style="margin-bottom: 20px; width: 150px; float: left;">
        <dx:ASPxButton ID="btnKhoa" runat="server" Text="Khóa tài khoản" Theme="iOS" AutoPostBack="false" OnClick="btnKhoa_Click">
            
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <dx:ASPxLabel ID="lbThongbao" runat="server" Text=""></dx:ASPxLabel>
                <div class="Clear"></div>
                <dx:ASPxGridView ID="grvpResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False"
                    KeyFieldName="ID" OnLoad="grvpResult_Load" OnHtmlRowPrepared="grvpResult_HtmlRowPrepared" OnHtmlDataCellPrepared="grvpResult_HtmlDataCellPrepared">
                    <Columns>
                     <dx:GridViewDataTextColumn Caption="STT" Name="colRowID" VisibleIndex="0"
                                Width="20px">
                                <DataItemTemplate>
                                    <dx:ASPxLabel ID="lblRowID" runat="server" Text='<%# Container.ItemIndex + 1 %>'>
                                    </dx:ASPxLabel>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="UserName" Caption="Tài khoản" VisibleIndex="0">
                            <CellStyle Wrap="True"></CellStyle>

                        </dx:GridViewDataTextColumn>

                        <dx:GridViewDataTextColumn FieldName="Lastname" Caption="Họ và chữ lót" VisibleIndex="1">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="FirtName" Caption="Tên" VisibleIndex="2">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="email" Caption="Email" VisibleIndex="3" Width="150px">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="phone" Caption="Phone" VisibleIndex="4">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="TuvanName" Caption="Người tư vấn" VisibleIndex="5">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="nguoigioithieu" Caption="Người giới thiệu" VisibleIndex="6">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn FieldName="ngaythamgia" Caption="Ngày đăng ký" VisibleIndex="7">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                        </dx:GridViewDataDateColumn>
                       

                    </Columns>
                    <SettingsBehavior AllowSort="true" AllowFocusedRow="true" />
                    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />

                    <SettingsPager PageSizeItemSettings-ShowAllItem="true" Mode="ShowAllRecords"></SettingsPager>
                </dx:ASPxGridView>
    </div>